package JAVACORE_TRAINING.ADVANCED.SWING;

import java.awt.Color;

import javax.swing.JFrame;
import javax.swing.JLabel;

public class LabelTutorial extends JFrame {
public LabelTutorial(){
	this.setTitle("Label tutorial");
	this.setSize(400, 600);
	this.setVisible(true);
	this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	
	JLabel jLabel = new JLabel("Label Tutorial");
	add(jLabel);
	jLabel.setText("Label Demo");
	jLabel.setToolTipText("This is tooltip");
	jLabel.setForeground(Color.BLUE);
	
}
public static void main(String[] args) {
	LabelTutorial labelTutorial = new LabelTutorial();
}
}
